(Quick Reference)

create-hibernate-cfg-xml

目的
Purpose

The create-hibernate-cfg-xml command will create a hibernate.cfg.xml file for custom Hibernate mappings.

使用例
Examples


grails create-hibernate-cfg-xml

詳細
Description

Creates a hibernate.cfg.xml file in the grails-app/conf/hibernate directory. You can add <mapping> elements there to reference annotated Java domain classes, classes mapped by hbm.xml files, or hbm.xml files containing <database-object> elements defining custom DDL that's not supported by GORM.

使用方法:

Usage:
grails create-hibernate-cfg-xml

発生するイベント:

Fired Events:
  • CreatedFile - When the file is created